(() => {
    'use strict';

    const input = document.createElement("input")
    const btn = document.createElement("button")
    btn.innerText = "一键设置"
    const container = document.createElement("div")
    container.appendChild(input)
    container.appendChild(btn)
    input.value = "None"
    container.style.position = "fixed"
    container.style.top = "10px"
    container.style.left = "50%";
    document.body.appendChild(container)
    const click = () => {
        const value = input.value;
        const cards = Array.from(document.getElementsByTagName("fieldset"));
        cards.forEach(card => {
            const item = Array.from(card.getElementsByClassName("ant-radio-wrapper"));
            item.forEach(line => {
                const text = line.innerText;
                const radio = line.getElementsByTagName("input")[0];
                if (text === value) radio.click()
            })
        })
    }
    btn.onclick = click
})()